//
// TcpServerParams.cpp
//
// $Id: //poco/1.4/Net/src/TcpServerParams.cpp#1 $
//
// Library: Net
// Package: TcpServer
// Module:  TcpServerParams
//
// Copyright (c) 2005-2007, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier:	BSL-1.0
//


#include "Poco/Net/TcpServerParams.h"


namespace Poco {
namespace Net {


TcpServerParams::TcpServerParams():
	m_threadIdleTime(10000000),
	m_maxThreads(0),
	m_maxQueued(64),
	m_threadPriority(PRIO_NORMAL)
{
}


TcpServerParams::~TcpServerParams()
{
}


void TcpServerParams::setThreadIdleTime(const Poco::Timespan& milliseconds)
{
	m_threadIdleTime = milliseconds;
}


void TcpServerParams::setMaxThreads(int count)
{
	poco_assert (count > 0);

	m_maxThreads = count;
}


void TcpServerParams::setMaxQueued(int count)
{
	poco_assert (count >= 0);

	m_maxQueued = count;
}


void TcpServerParams::setThreadPriority(Poco::ThreadPriority prio)
{
	m_threadPriority = prio;
}


} } // namespace Poco::Net
